
/**  
* @Title: TableConfig.java  
* @Package org.sapling.data.beans  
* @Description: TODO
* @author DcfZero  
* @date 2021年5月9日  
* @version V1.0  
*/ 
package org.sapling.data.beans;

import java.io.Serializable;
import java.util.Map;

import lombok.Data;
import lombok.Getter;

/**  
* TODO
* @ClassName: TableConfig  
* @author DcfZero 
* @date 2021年5月9日  
*    
*/
@Getter
public class TableConfig implements Serializable{/**
	 * TODO
	 * @author DcfZero
	 */
	private static final long serialVersionUID = -4259916945939622179L;
	
	private String pkUid;
	private String tableId;
	private String tableName;
	private String isDict;
	private String dictConfig;
	private String connectId;
	private String isUse;
	
	public TableConfig(Map<String,Object> configMap) {
		if(!configMap.isEmpty()) {
			this.setPkUid(String.valueOf(configMap.get("pk_uid")));
			this.setTableId(String.valueOf(configMap.get("table_id")));
			this.setTableName(String.valueOf(configMap.get("table_name")));
			this.setIsDict(String.valueOf(configMap.get("is_dict")));
			this.setDictConfig(String.valueOf(configMap.get("dict_config")));
			this.setConnectId(String.valueOf(configMap.get("connect_id")));
			this.setIsUse(String.valueOf(configMap.get("is_use")));
		}
	}
	
	private void setTableId(String tableId) {
		this.tableId = tableId;
	}

	private void setTableName(String tableName) {
		this.tableName = tableName;
	}

	private void setIsDict(String isDict) {
		this.isDict = isDict;
	}

	private void setDictConfig(String dictConfig) {
		this.dictConfig = dictConfig;
	}

	private void setConnectId(String connectId) {
		this.connectId = connectId;
	}

	private void setIsUse(String isUse) {
		this.isUse = isUse;
	}

	private void setPkUid(String pkUid) {
		this.pkUid = pkUid;
	}
	
	
}
